package com.common;

import cn.hutool.core.util.StrUtil;
import freemarker.template.TemplateMethodModelEx;
import freemarker.template.TemplateModelException;

import java.util.List;

public class FMUnderlineCase implements TemplateMethodModelEx {

    @Override
    public Object exec(List list) throws TemplateModelException {
        String text = list.get(0).toString();
        return StrUtil.toUnderlineCase(text);
    }
}
